package com.example.runningdemo.designModel.factory.abstracts;

/**
 * @program: Running-Demo
 * @description: 面粉工厂
 * @author: kangwei
 * @create: 2024-08-09 08:46
 **/
public interface WheatFlour {

    void getName();


    class CronFlour implements WheatFlour {

        @Override
        public void getName() {
            System.out.println("玉米粉");
        }
    }

    class SoyFlour implements WheatFlour {

        @Override
        public void getName() {
            System.out.println("大豆粉");
        }
    }
}
